#ifndef MUTIGAME_H
#define MUTIGAME_H
#include "qgraphicsscene.h"
#include "qsoundeffect.h"
#include <QWidget>
#include <QTimer>
#include "shovel.h"
#include "button.h"
#include "map.h"
#include "mower.h"
#include "zombieshop.h"
#include "plantshop.h"
#include "transiver.h"


class MutiGame : public QWidget
{
    Q_OBJECT
public:
    enum Faction{Zombie = 1, Plant = 2};
    Faction faction;
private:
    QSoundEffect *sound;
    QTimer *timer;
    QGraphicsScene *scene;
    QGraphicsView *view;
    Transiver *transiver;
public:
    MutiGame();
    void init(Transiver *transiver);
    void check();
    void setFaction(Faction _faction);
    Faction getFaction();
};

#endif // MUTIGAME_H
